package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tbc_industry")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class IndustryModel {

    @TableId(type = IdType.AUTO)
    private int id;
    private String industryCode;//行业编码
    private String industryName;//行业名称
    private Integer industryState;//行业状态
    private String parentCode;//父级行业编码
    private Integer parentId;//父级行业ID
    private Integer level;//级别
    @TableField(exist = false)
    private List<IndustryModel> sonList;//子类
}
